﻿using System.Collections.Generic;
using System.Data;

namespace CoreEx.Database.Client
{
    /// <summary>
    /// Represents a class that is capable of returning a list of <see cref="IDataParameter"/>
    /// instances for a stored procedure.    
    /// </summary>
    public interface IParameterExtractor
    {
        /// <summary>
        /// Returns list that contains all parameters for the stored procedure as 
        /// specified by <paramref name="procedureName"/>
        /// </summary>
        /// <param name="procedureName">The name of the stored procedure</param>
        /// <returns></returns>        
        IEnumerable<IDataParameter> GetParameters(string procedureName); 
    }
}
